package com.example.demo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
public class UploadDownloadHistoryDTO {
    private Long id;
    private Long userId;
    private Long torrentId;
    private String filename; // 新增文件名字段
    private String actionType; // "UPLOAD" 或 "DOWNLOAD"
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;
}